<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::PenalizingEvaluator Struct Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="structshark_1_1_penalizing_evaluator.html">PenalizingEvaluator</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="structshark_1_1_penalizing_evaluator-members.html">List of all members</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::PenalizingEvaluator Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Penalizing evaluator for scalar objective functions.  
 <a href="structshark_1_1_penalizing_evaluator.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_penalizing_evaluator_8h_source.html">shark/Algorithms/DirectSearch/Operators/Evaluation/PenalizingEvaluator.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac563c794272c3d7a73f2d55a7e3ae2c0" id="r_ac563c794272c3d7a73f2d55a7e3ae2c0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_penalizing_evaluator.html#ac563c794272c3d7a73f2d55a7e3ae2c0">PenalizingEvaluator</a> ()</td></tr>
<tr class="memdesc:ac563c794272c3d7a73f2d55a7e3ae2c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default c'tor, initializes the penalty factor to \(10^{-6}\).  <br /></td></tr>
<tr class="separator:ac563c794272c3d7a73f2d55a7e3ae2c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0b4b30312f7a7745f2185e3ff7e699c" id="r_ab0b4b30312f7a7745f2185e3ff7e699c"><td class="memTemplParams" colspan="2">template&lt;typename Function , typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </td></tr>
<tr class="memitem:ab0b4b30312f7a7745f2185e3ff7e699c"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_penalizing_evaluator.html#ab0b4b30312f7a7745f2185e3ff7e699c">operator()</a> (Function const &amp;f, <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &amp;individual) const</td></tr>
<tr class="memdesc:ab0b4b30312f7a7745f2185e3ff7e699c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates the supplied function on the supplied individual.  <br /></td></tr>
<tr class="separator:ab0b4b30312f7a7745f2185e3ff7e699c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bbf4b480a96b8875ae9eb33858c4ccb" id="r_a3bbf4b480a96b8875ae9eb33858c4ccb"><td class="memTemplParams" colspan="2">template&lt;typename Function , typename Iterator &gt; </td></tr>
<tr class="memitem:a3bbf4b480a96b8875ae9eb33858c4ccb"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_penalizing_evaluator.html#a3bbf4b480a96b8875ae9eb33858c4ccb">operator()</a> (Function const &amp;f, Iterator begin, Iterator end) const</td></tr>
<tr class="memdesc:a3bbf4b480a96b8875ae9eb33858c4ccb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates The function on individuals in the range [first,last].  <br /></td></tr>
<tr class="separator:a3bbf4b480a96b8875ae9eb33858c4ccb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20c4f924cbeb69a809ec865408662a08" id="r_a20c4f924cbeb69a809ec865408662a08"><td class="memTemplParams" colspan="2">template&lt;class SearchPointType &gt; </td></tr>
<tr class="memitem:a20c4f924cbeb69a809ec865408662a08"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_penalizing_evaluator.html#a20c4f924cbeb69a809ec865408662a08">penalize</a> (SearchPointType const &amp;s, SearchPointType const &amp;t, double &amp;fitness) const</td></tr>
<tr class="separator:a20c4f924cbeb69a809ec865408662a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a269613f2056cdae9bf239f3b3c437eda" id="r_a269613f2056cdae9bf239f3b3c437eda"><td class="memTemplParams" colspan="2">template&lt;class SearchPointType &gt; </td></tr>
<tr class="memitem:a269613f2056cdae9bf239f3b3c437eda"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_penalizing_evaluator.html#a269613f2056cdae9bf239f3b3c437eda">penalize</a> (SearchPointType const &amp;s, SearchPointType const &amp;t, RealVector &amp;fitness) const</td></tr>
<tr class="separator:a269613f2056cdae9bf239f3b3c437eda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1ca35f5ebdc43c424826b16d52bbee7" id="r_ae1ca35f5ebdc43c424826b16d52bbee7"><td class="memTemplParams" colspan="2">template&lt;typename Archive &gt; </td></tr>
<tr class="memitem:ae1ca35f5ebdc43c424826b16d52bbee7"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_penalizing_evaluator.html#ae1ca35f5ebdc43c424826b16d52bbee7">serialize</a> (Archive &amp;archive, const unsigned int version)</td></tr>
<tr class="memdesc:ae1ca35f5ebdc43c424826b16d52bbee7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores/loads the evaluator's state.  <br /></td></tr>
<tr class="separator:ae1ca35f5ebdc43c424826b16d52bbee7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aed43bc8e8fd6540c49bf525f9c60217e" id="r_aed43bc8e8fd6540c49bf525f9c60217e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_penalizing_evaluator.html#aed43bc8e8fd6540c49bf525f9c60217e">m_penaltyFactor</a></td></tr>
<tr class="memdesc:aed43bc8e8fd6540c49bf525f9c60217e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Penalty factor \(\alpha\), default value: \(10^{-6}\) .  <br /></td></tr>
<tr class="separator:aed43bc8e8fd6540c49bf525f9c60217e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ebb35f4267c49f615fcaf712b3d74f8" id="r_a1ebb35f4267c49f615fcaf712b3d74f8"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_penalizing_evaluator.html#a1ebb35f4267c49f615fcaf712b3d74f8">m_numEvaluations</a></td></tr>
<tr class="memdesc:a1ebb35f4267c49f615fcaf712b3d74f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of Evaluations on a noisy function.  <br /></td></tr>
<tr class="separator:a1ebb35f4267c49f615fcaf712b3d74f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Penalizing evaluator for scalar objective functions. </p>
<p>Evaluates the supplied single-objective function \(f\) for the search point \(s\) according to:  </p><p class="formulaDsp">
\begin{align*}
  y &amp; = &amp; f( s&#39; )\\
  y&#39; &amp; = &amp; f( s&#39; ) + \alpha \vert\vert s - s&#39; \vert\vert_2^2
\end{align*}
</p>
<p> where \(s&#39;\) is the repaired version of \(s\) if \(s\) is not feasible and equal to \(s\) otherwise. The default value of \(\alpha\) is \(10^{-6}\).</p>
<p>This Evaluator can also handle noisy functions by applying reevaluations of a single point on f and averaging the results. </p>

<p class="definition">Definition at line <a class="el" href="_penalizing_evaluator_8h_source.html#l00057">57</a> of file <a class="el" href="_penalizing_evaluator_8h_source.html">PenalizingEvaluator.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac563c794272c3d7a73f2d55a7e3ae2c0" name="ac563c794272c3d7a73f2d55a7e3ae2c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac563c794272c3d7a73f2d55a7e3ae2c0">&#9670;&#160;</a></span>PenalizingEvaluator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">shark::PenalizingEvaluator::PenalizingEvaluator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default c'tor, initializes the penalty factor to \(10^{-6}\). </p>

<p class="definition">Definition at line <a class="el" href="_penalizing_evaluator_8h_source.html#l00061">61</a> of file <a class="el" href="_penalizing_evaluator_8h_source.html">PenalizingEvaluator.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab0b4b30312f7a7745f2185e3ff7e699c" name="ab0b4b30312f7a7745f2185e3ff7e699c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0b4b30312f7a7745f2185e3ff7e699c">&#9670;&#160;</a></span>operator()() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Function , typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::PenalizingEvaluator::operator() </td>
          <td>(</td>
          <td class="paramtype">Function const &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &amp;&#160;</td>
          <td class="paramname"><em>individual</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Evaluates the supplied function on the supplied individual. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">f</td><td>The function to be evaluated. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">individual</td><td>The individual to evaluate the function for. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_penalizing_evaluator_8h_source.html#l00070">70</a> of file <a class="el" href="_penalizing_evaluator_8h_source.html">PenalizingEvaluator.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_penalizing_evaluator.html#a1ebb35f4267c49f615fcaf712b3d74f8">m_numEvaluations</a>, <a class="el" href="structshark_1_1_penalizing_evaluator.html#a20c4f924cbeb69a809ec865408662a08">penalize()</a>, <a class="el" href="classshark_1_1_individual.html#a62d3d29935d144352503f3002bd93363">shark::Individual&lt; PointType, FitnessTypeT, Chromosome &gt;::penalizedFitness()</a>, <a class="el" href="classshark_1_1_individual.html#a8d6ed0dfa38f5b0e9debdeb5529e6689">shark::Individual&lt; PointType, FitnessTypeT, Chromosome &gt;::searchPoint()</a>, and <a class="el" href="classshark_1_1_individual.html#a27124e785660f26f56ab638568f1f5f1">shark::Individual&lt; PointType, FitnessTypeT, Chromosome &gt;::unpenalizedFitness()</a>.</p>

</div>
</div>
<a id="a3bbf4b480a96b8875ae9eb33858c4ccb" name="a3bbf4b480a96b8875ae9eb33858c4ccb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bbf4b480a96b8875ae9eb33858c4ccb">&#9670;&#160;</a></span>operator()() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Function , typename Iterator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::PenalizingEvaluator::operator() </td>
          <td>(</td>
          <td class="paramtype">Function const &amp;&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Iterator&#160;</td>
          <td class="paramname"><em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Iterator&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Evaluates The function on individuals in the range [first,last]. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">f</td><td>The function to be evaluated. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">begin</td><td>first indivdual in the range to be evaluated </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">end</td><td>iterator pointing directly beehind the last individual to be evaluated </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_penalizing_evaluator_8h_source.html#l00093">93</a> of file <a class="el" href="_penalizing_evaluator_8h_source.html">PenalizingEvaluator.h</a>.</p>

</div>
</div>
<a id="a20c4f924cbeb69a809ec865408662a08" name="a20c4f924cbeb69a809ec865408662a08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20c4f924cbeb69a809ec865408662a08">&#9670;&#160;</a></span>penalize() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::PenalizingEvaluator::penalize </td>
          <td>(</td>
          <td class="paramtype">SearchPointType const &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SearchPointType const &amp;&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>fitness</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_penalizing_evaluator_8h_source.html#l00100">100</a> of file <a class="el" href="_penalizing_evaluator_8h_source.html">PenalizingEvaluator.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_penalizing_evaluator.html#aed43bc8e8fd6540c49bf525f9c60217e">m_penaltyFactor</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_penalizing_evaluator.html#ab0b4b30312f7a7745f2185e3ff7e699c">operator()()</a>.</p>

</div>
</div>
<a id="a269613f2056cdae9bf239f3b3c437eda" name="a269613f2056cdae9bf239f3b3c437eda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a269613f2056cdae9bf239f3b3c437eda">&#9670;&#160;</a></span>penalize() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SearchPointType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::PenalizingEvaluator::penalize </td>
          <td>(</td>
          <td class="paramtype">SearchPointType const &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SearchPointType const &amp;&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector &amp;&#160;</td>
          <td class="paramname"><em>fitness</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_penalizing_evaluator_8h_source.html#l00105">105</a> of file <a class="el" href="_penalizing_evaluator_8h_source.html">PenalizingEvaluator.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_penalizing_evaluator.html#aed43bc8e8fd6540c49bf525f9c60217e">m_penaltyFactor</a>.</p>

</div>
</div>
<a id="ae1ca35f5ebdc43c424826b16d52bbee7" name="ae1ca35f5ebdc43c424826b16d52bbee7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1ca35f5ebdc43c424826b16d52bbee7">&#9670;&#160;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Archive &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void shark::PenalizingEvaluator::serialize </td>
          <td>(</td>
          <td class="paramtype">Archive &amp;&#160;</td>
          <td class="paramname"><em>archive</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>version</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Stores/loads the evaluator's state. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Archive</td><td>The type of the archive. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">archive</td><td>The archive to use for loading/storing. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">version</td><td>Currently unused. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_penalizing_evaluator_8h_source.html#l00117">117</a> of file <a class="el" href="_penalizing_evaluator_8h_source.html">PenalizingEvaluator.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_penalizing_evaluator.html#aed43bc8e8fd6540c49bf525f9c60217e">m_penaltyFactor</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a1ebb35f4267c49f615fcaf712b3d74f8" name="a1ebb35f4267c49f615fcaf712b3d74f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ebb35f4267c49f615fcaf712b3d74f8">&#9670;&#160;</a></span>m_numEvaluations</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t shark::PenalizingEvaluator::m_numEvaluations</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Number of Evaluations on a noisy function. </p>

<p class="definition">Definition at line <a class="el" href="_penalizing_evaluator_8h_source.html#l00122">122</a> of file <a class="el" href="_penalizing_evaluator_8h_source.html">PenalizingEvaluator.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_penalizing_evaluator.html#ab0b4b30312f7a7745f2185e3ff7e699c">operator()()</a>.</p>

</div>
</div>
<a id="aed43bc8e8fd6540c49bf525f9c60217e" name="aed43bc8e8fd6540c49bf525f9c60217e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed43bc8e8fd6540c49bf525f9c60217e">&#9670;&#160;</a></span>m_penaltyFactor</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double shark::PenalizingEvaluator::m_penaltyFactor</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Penalty factor \(\alpha\), default value: \(10^{-6}\) . </p>

<p class="definition">Definition at line <a class="el" href="_penalizing_evaluator_8h_source.html#l00121">121</a> of file <a class="el" href="_penalizing_evaluator_8h_source.html">PenalizingEvaluator.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_elitist_c_m_a.html#a61ddc9606d203965e2b9f292c9acbea5">shark::ElitistCMA::constrainedPenaltyFactor()</a>, <a class="el" href="classshark_1_1_elitist_c_m_a.html#a415fd8e3a2a3698628e7cbe3bdea0ad4">shark::ElitistCMA::constrainedPenaltyFactor()</a>, <a class="el" href="structshark_1_1_penalizing_evaluator.html#a20c4f924cbeb69a809ec865408662a08">penalize()</a>, <a class="el" href="structshark_1_1_penalizing_evaluator.html#a269613f2056cdae9bf239f3b3c437eda">penalize()</a>, and <a class="el" href="structshark_1_1_penalizing_evaluator.html#ae1ca35f5ebdc43c424826b16d52bbee7">serialize()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/shark/Algorithms/DirectSearch/Operators/Evaluation/<a class="el" href="_penalizing_evaluator_8h_source.html">PenalizingEvaluator.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
